﻿#pragma once

#include <QDialog>
#include "ui_CommunicationDialog.h"
#include "Communicator.h"

QT_BEGIN_NAMESPACE
namespace Ui { class CommunicationDialogClass; };
QT_END_NAMESPACE

class CommunicationDialog : public QDialog
{
	Q_OBJECT

public:
	CommunicationDialog(QWidget *parent = nullptr);
	~CommunicationDialog();

	void init();
	HSS::PortInformation getPortInfo();

signals:
	void sendPortInfo(HSS::PortInformation portinfo);

private:
	void on_pushButton_set_clicked();
private:
	Ui::CommunicationDialogClass *ui;
	Communicator *m_pCommunicator;
};
